﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace TapiocaWpf.Views
{
    /// <summary>
    /// Interaction logic for ProxySetting.xaml
    /// </summary>
    public partial class ProxySetting : Window
    {
        public ProxySetting()
        {
            InitializeComponent();
        }


        public string Server
        {
            get
            {
                return this.txtServer.Text;
            }
            set
            {
                this.txtServer.Text = value;
            }
        }

        public string Domain
        {
            get
            {
                return this.txtDomain.Text;
            }
            set
            {
                this.txtDomain.Text = value;
            }
        }

        public string Port
        {
            get
            {
                return this.txtPort.Text;
            }
            set
            {
                this.txtPort.Text = value;
            }
        }

        public string Username
        {
            get
            {
                return this.txtUser.Text;
            }
            set
            {
                this.txtUser.Text = value;
            }
        }

        public string Password
        {
            get
            {
                return this.txtPassword.Password;
            }
            set
            {
                this.txtPassword.Password = value;
            }
        }


        private void buttonOk_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;            
            this.Close();
        }

        private void buttonCancel_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
            this.Close();
        }
    }
}
